package com.hjj.web.entity.vo;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.security.Principal;


/**
 * @author: luoyajun
 * @date: 2020/4/17 9:55
 */
@Data
@ApiModel("WebSocket例子请求参数")
public class WebsocketUserVO implements Principal {
    private String userName;

    @Override
    public String getName() {
        return userName;
    }

    public WebsocketUserVO() {
    }

    public WebsocketUserVO(String userName) {
        this.userName = userName;
    }
}
